<template>
  <div>
    <button @click="show">跳转到home</button>
  </div>
</template>

<script>
export default {
  name: 'Index',
  data () {
    return {
      
    }
  },
  methods:{
  	show(){
  		this.$router.push({
  			path:'/home'
  		})
  	}
  }
}
</script>


<style scoped>

/*scoped 只在当前页面起作用*/
</style>
